package com.chance.cc.crawler.prod.command.node.jd;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.node.CrawlerNodeCommand;
import com.chance.cc.crawler.prod.command.job.domain.commerce.jd.JDH5CommentCrawlerScheduleJob;

/**
 * @author bx
 * @date 2020/12/8 0008 13:37
 */
public class JDCrawlerNodeOperator {

    public static void main(String[] args) {
        killCrawler("192.168.1.218", JDH5CommentCrawlerScheduleJob.jdCrawlerJob());

    }

    private static void killCrawler(String ip, CrawlerJob crawlerJob){
        CrawlerNodeCommand crawlerNodeCommand = new CrawlerNodeCommand(ip,9505);

        crawlerNodeCommand.nodeStatus();


        crawlerNodeCommand.killCrawler(crawlerJob);


        crawlerNodeCommand.nodeStatus();
    }
}
